//
//  TotalListNumView.m
//  SafeFoodManagerDemo
//
//  Created by bob on 2017/10/23.
//  Copyright © 2017年 bob. All rights reserved.
//

#import "TotalListNumView.h"

@interface TotalListNumView()

@property(nonatomic,strong)UILabel *TipLabel;

@end

@implementation TotalListNumView

-(instancetype)initWithFrame:(CGRect)frame
{
    if (self=[super initWithFrame:frame]) {
        
        self.backgroundColor=[UIColor whiteColor];
        
        self.TipLabel=[[UILabel alloc]initWithFrame:CGRectMake(0, 10, frame.size.width, 21)];
        
        self.TipLabel.textColor=TBColorProvideBtnbg;
        
        self.TipLabel.font=[UIFont systemFontOfSize:15];
        
        self.TipLabel.textAlignment=NSTextAlignmentCenter;
        
        [self addSubview:self.TipLabel];
    }
    
    return self;
}

-(void)setShowTip:(NSString *)ShowTip
{
    _ShowTip=ShowTip;
    
    self.TipLabel.text=ShowTip;
    
   
    
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
